Utility class to retrieve or compute interesting data about textures. More...
Static Public Member Functions | |
| static void | computeIrradianceSH (Texture *input, Texture *output) |
| static unsigned int | getFormatByteSize (FORMAT format) |
| static unsigned int | getFormatChannelCount (FORMAT format) |
| static FORMAT | getFormatSrgbEquivalent (FORMAT format) |
| static FORMAT | getFormatRgbEquivalent (FORMAT format) |
| static FORMAT | getFormatTypelessEquivalent (FORMAT format) |
| static FORMAT | getFormatDepthEquivalent (FORMAT format) |
| static bool | isFormatOver255 (FORMAT format) |
| static bool | isFormatCompressed (FORMAT format) |
| static bool | isFormatCompatibleForRenderFlag (FORMAT format, TEX_RENDER_FLAG renderFlag) |
| static int | getNeededMipsForSize (int width, int height, int depthOrArraySize) |
Utility class to retrieve or compute interesting data about textures.
|
static |
Computes the irradiance map of a texture, using spherical harmonics. For now, only supports 2D textures. Cubemaps are not supported.
| input | The texture from which to compute the irradiance map. |
| output | The texture that will receive the irradiance computed. |
|
static |
| format | The format to use. |
|
static |
| format | The format to use. |
| format | The format to use. |
| format | The format to use. |
| format | The format to use. |
| format | The format to use. |
|
static |
| format | The format to use. |
|
static |
Checks whether a format is compressed. Compressed formats are usually variants of BC and such.
| format | The format to use. |
|
static |
| format | The format to use. |
| renderFlag | The render flag to check against. |
|
static |
| width | The width of the texture. |
| height | The height of the texture. |
| depthOrArraySize | The depth, or array size, of the texture. |